﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo08
{
    class BlacksmithNPC : NPC
    {
        private string blacksmithInfo;

        public string BlacksmithInfo {
            get { return this.blacksmithInfo; }
            set { this.blacksmithInfo = value; }
        }

        public BlacksmithNPC(string name,NPCType type,string blacksmithInfo):base(name,type) {
            this.blacksmithInfo = blacksmithInfo;
        }

        public override void speak()
        {
            Console.WriteLine("请问要锻造什么?NPC:{0},锻造物品:{1}",this.Name,this.blacksmithInfo);
        }
    }
}
